package ch9.ex3;

import static ch9.print.Print.*;


class Outer{
	private final String data;
	//Inner class
	class Inner{
		public String toString(){
			return data;
		}
	}
	//Constructor Outer
	Outer(String data){
		this.data = data;
	}
	// method getInner()
	Inner gerInner(){
		return new Inner();
	}
}
public class InnerAccessingOuter {
	public static void  main(String[] args){
		Outer o = new Outer("Inner accessing outer!");
		Outer.Inner i = o.gerInner();
		print(i.toString());
	}
}
